export default function getFile(path) {
    return new Promise((res) => {
        const xhr = new XMLHttpRequest();

        xhr.onload = () => {
            res(xhr.response);
        };

        xhr.responseType = 'blob';
        xhr.open('GET', path, true);
        xhr.send();
    });
}
